//
//  SYDLocationManage.h
//  PinGJByOwnerSide
//
//  Created by lantaiyuan on 2017/9/5.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^locationSuccess)(CLLocationCoordinate2D coordinate,NSString *address);
typedef void(^locationFailed)(void);
@interface SYDLocationManage : NSObject
/** 定位block*/
@property(nonatomic,copy)locationSuccess locationSuccessBlock;
/*定位失败*/
@property (nonatomic, copy) locationFialed locationFailedBlock;
/** 开始定位 */
- (void)startSerialLocation;

/** 停止定位 */
- (void)stopSerialLocation;

//开始单次定位
- (void)startOnceLocation;

/** 带逆地理的（单次定位） */
- (void)locationWithReGeocode:(AMapLocatingCompletionBlock)completionBlock;

//判断定位权限是否开启
+ (BOOL)isLocationServiceOpen;

@end

